Previous Book Contents Book Index Next

Inside Macintosh: Programming With JManager /
Chapter 2 - JManager Reference / JManager Functions
Abstract Window Toolkit Control Functions /


JMMenuSelected

Dispatch a menu event to an AWT context.

OSStatus JMMenuSelected (
                     JMAWTContextRef context,
                     MenuHandle hMenu,
                     short menuItem);
context
The AWT context that owns the menu.
hMenu
The menu handle that was selected.
menuItem
The item that was selected.
function result
A result code; see "JManager Result Codes".
DISCUSSION
You can use the Mac OS Toolbox function GetMenuHandle to get the appropriate value of the hMenu parameter to pass.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
10 DEC 1997